package linter.linterjava.mapper;

import linter.linterjava.POJO.DO.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 北煜
* @description 针对表【user(用户详情表)】的数据库操作Mapper
* @createDate 2024-07-07 09:53:12
* @Entity linter.linterjava.POJO.DO.User
*/
public interface UserMapper extends BaseMapper<User> {

    /**
     * @param username 用户名字
     * @return 返回用户DO
     */
    User getUserByUsername(@Param("username") String username);

    /**
     * @param username 用户名
     * @return 返回查询到的ID
     */
    Long getIdByUsername(@Param("username") String username);

    /**
     * @param user 用户组
     * @return 返回注册信息
     */
    Long insertThenById(@Param("user") User user);
}




